package org.arkeologgr.appening.service.json;

import java.util.Date;

import org.arkeologgr.appening.entity.ItemComment;


public class ItemCommentJSON {

	private String userName;
	
	private String comment;
	
	private Date timeStamp;
	
	public ItemCommentJSON() {
	}
	
	public ItemCommentJSON(ItemComment ic) {
		this.userName = ic.getUser().getUserName();
		this.comment = ic.getComment();
		this.timeStamp = ic.getTimestamp();
	}

	public ItemCommentJSON(String user, String comment, Date timeStamp) {
		super();
		this.userName = user;
		this.comment = comment;
		this.timeStamp = timeStamp;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public Date getTimeStamp() {
		return timeStamp;
	}

	public void setTimeStamp(Date timeStamp) {
		this.timeStamp = timeStamp;
	}
	
	
}
